import api from "../../../../request/api.js"
import $common from "../../../../commonFunction/common.js"

export default {
    // 机构查询 -- 模糊查询
    selectMechanism(params,_this,callback){
        api.selectWorks(params)
        .then(result=>{
            $common.filterLogin(result,_this,()=>{
                if(result.data.success){
                    callback(result)
                }
            })
        })
    },
    // 全文搜索
    searchAll(params,callback){

    },
    // 根据id查询
    selectById(params,callback){
        api.selectWorksById(params).then(result=>{
            var _this = this
            $common.filterLogin(result,_this,()=>{
                if(result.data.success){
                    callback(result)
                }
            })
            
        })
    }

}